module.exports = {
  // css: { extract: false },// 不进行内联，发布成第三方库的时候可以引用css文件，避免资源链接错误
  publicPath: '/flow-page',
  configureWebpack: {
    // entry: './app/main.js',
    // output: {
    //   libraryExport: 'default'
    // },
    devtool: 'source-map',
    module: {
      rules: [
        {
          test: /\.bpmnlintrc$/i,
          use: ['bpmnlint-loader']
        }, {
          test: /\.s[ac]ss$/i,
          use: ['style-loader', 'css-loader', 'sass-loader']
        },
        {
          test: /\.js$/,
          exclude: /node_modules\/(sass-loader)/,
          use: ['babel-loader']
        }
      ]
    }
  },

  devServer: {
    proxy: {
      '/flow': {
        target: 'http://192.168.2.100:83/prod-api',
        changeOrigin: true
      }
    }
  }
}
